﻿jQuery(document).ready(function () {

    /// BUTTON SUBMIT FORM
    /// CALL AJAX VERIFIE SI LE USER EXISTE
    /// Maxime Dubois
//    $("#cntContentPage_btnRegister").click(function (event) {
//        event.preventDefault();
//        var user = $("#cntContentPage_txtUsername").val();
//        var jsonText = JSON.stringify({ Username: user });

//        $.ajax({
//            type: "POST",
//            url: "ajax/ajax.aspx/UserExist",
//            data: jsonText,
//            contentType: "application/json; charset=utf-8",
//            dataType: "json",
//            success: function (msg) {
//                $("#cntContentPage_Label1").html(msg.d);
//            }
//        });
//    });

});